package com.maslyk.invitation.product;

import java.util.List;

import com.maslyk.invitation.to.SimpleProduct;
import com.maslyk.invitation.utils.ExcelDataProvider;

public class ProductProvider {

	private List<SimpleProduct> invitations;
	private List<SimpleProduct> products;
	
	
	public List<SimpleProduct> getInvitations() {
		
		if(invitations == null)
			invitations = ExcelDataProvider.getProductList("zaproszenia");
		
		return invitations;
	}
	
	
	public List<SimpleProduct> getProducts() {
		
		if(products == null)
			products = ExcelDataProvider.getProductList("produkty");
		
		return products;
	}
}
